package com.shouren.cxf.server.impl;

/**
 * Created by shouren on 2019/7/26.
 */
import com.shouren.cxf.server.CxfServices;
import org.springframework.stereotype.Component;

import javax.jws.WebService;

/**
 *  web services 接口实现
 */
@WebService(serviceName = "cxfServices"// 服务名
        , targetNamespace = "http://server.cxf.shouren.com"// 包名倒序，并且和接口定义保持一致
        , endpointInterface = "com.shouren.cxf.server.CxfServices") // 包名
@Component
public class CxfServicesImpl implements CxfServices {
    @Override
    public String sayHello(String name) {
        return "hello , " + name;
    }
}
